/*
 * Spawner.h
 *
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses 
 */

#ifndef SPAWNER_H_
#define SPAWNER_H_

#include "Map.h"
#include "LivingObject.h"
#include "Clonable.h"

// Clase base para los spawner

class Spawner: virtual public Clonable {
protected:
    int spawning_x;
    int spawning_y;

public:
    Spawner();
    Spawner(int x, int y);
    void setSpawningX(int x);
    int getSpawningX();
    void setSpawningY(int y);
    int getSpawningY();
    virtual bool canSpawn(Map& map);
    virtual LivingObject* spawn() = 0;
    virtual bool isDepleted() = 0;
    virtual Spawner* clone() = 0;
    virtual ~Spawner();
};

#endif /* SPAWNER_H_ */
